﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Online_Shop
{
    class Program
    {
        static void Main(string[] args)
        {
            cl_0423_StoreTemplate st1, st2, st3, st4,st5;
            cl_0423_TemplateFactory tf = new cl_0423_TemplateFactory();

            st1 = tf.getStores("服装店");
            st1.useLogo("耐克");

            st2 = tf.getStores("服装店");
            st2.useLogo("安踏");

            st3 = tf.getStores("零食店");
            st3.useLogo("卫龙");

            st4 = tf.getStores("零食店");
            st4.useLogo("良品铺子");

            st5 = tf.getStores("服装店");
            st5.useLogo("李宁");

            Console.WriteLine("店铺类型："+tf.getTotaltype());
            Console.WriteLine("店铺总数："+tf.getTotalstore());
            Console.ReadKey();
        }
    }
}
